package com.ny.entity;

public class Order {
    private int orderId;
    private int studentId;
    private int productId;
    private int number;
    private double price;

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getStudentId() {
        return studentId;
    }

    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", studentId=" + studentId +
                ", productId=" + productId +
                ", number='" + number + '\'' +
                ", total_price='" + price + '\'' +
                '}';
    }

    public Order(int orderId, int studentId, int productId, int number, double price) {
        this.orderId = orderId;
        this.studentId = studentId;
        this.productId = productId;
        this.number = number;
        this.price = price;
    }

    public Order() {

    }
}
